package com.cskaoyan.model.bo.systembo;

import lombok.Data;
import org.springframework.boot.convert.DataSizeUnit;

import javax.validation.constraints.Size;
import java.util.List;

@Data
public class CreateAdminBo {

    /**
     * username : chunkchunk
     * password : 123456
     * avatar : http://182.92.235.201:8083/wx/storage/fetch/v85kqchnkjgkmtzexnk9.jpg
     * roleIds : [1,3]
     */

    @Size(min = 6, max = 12, message = "管理员名称不符合规定")
    private String username;
    @Size(min = 6, message = "密码长度至少为6位")
    private String password;
    private String avatar;
    private Integer[] roleIds;

}
